package com.pig4cloud.pigx.contract.open.api.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 */
@Data
public class OpenApiPositionMarginDetailVOV1 implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 仓位id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long positionId;

	/**
	 * 保证金
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal margin;

	/**
	 * 操作类型（0加、1减）
	 */
	private String operationType;

	/**
	 * 强平价
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal liquidatePrice;

	/**
	 * 操作时间
	 */
	private Long time;

}
